package com.ssy.lingxi.platform.manage.repository;

import com.ssy.lingxi.platform.manage.entity.base.SecretKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SecretKeyRepository extends JpaRepository<SecretKey, Long> {

    SecretKey findByMemberIdAndMemberRoleId(Long memberId,Long memberRoleId);

    void deleteAllByMemberIdAndMemberRoleId(Long memberId,Long memberRoleId);
}
